<?if($this->current_user()==null):?>
<form class="<?=$style?>" method="post" name="form1" action="<?=_U('member/login_post')?>">  
<TABLE>
	<TR> 
		<TD  align="right">卡号：</TD>
		<TD>
			<INPUT type="text" name="number" class='txt_input'>
		</TD>
	</TR>
	<TR>
		<TD align="right">密码：</TD>
		<TD>
			<INPUT type="password" name="password" class='txt_input'>
		</TD>
	</TR>
	<TR>
		<TD class='btn' colspan="2"> 
			<input type="submit" value="登录"> <font color='red'><?=$error?></font>
		</TD>
	</TR>
</TABLE>
</form>
<?else:?>
<table class="login_view">
	<tr><td>
		欢迎您:<?=$this->current_user()->applicant->name?>
	</td><td align="right" style="padding-left:6px">
		<a href="<?=_U('member/logout')?>">退出</a> 
		<a style="cursor:pointer" 
		onclick="open_window('<?=_U('member/update_password')?>','new_window',300,200)">
			更改密码
		</a> 
	</td></tr>
	<tr><td colspan="2">
		<?=lang('member_number')?>:<?=$this->current_user()->number?>
	</td></tr>
	<tr><td colspan="2">
		您还有
		<?=round((strtotime($this->current_user()->end_time) - time())/3600/24)?> 
		天会员卡号将到期
	</td></tr>
</table>
<?endif?>
